package com.lcc.lynx.base.system.pojo.excel;

import com.lcc.lynx.excel.annotation.Excel;
import cn.idev.excel.annotation.ExcelProperty;
import java.util.Date;
import cn.idev.excel.annotation.format.DateTimeFormat;
import cn.idev.excel.enums.poi.HorizontalAlignmentEnum;
import cn.idev.excel.annotation.write.style.ColumnWidth;
import cn.idev.excel.annotation.write.style.ContentStyle;
import lombok.Data;


/** 
 * 用户管理Excel实体
 * @auth lcc
 * @date 2025-07-31
 */
@Data
@ColumnWidth(12)
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
public class SysUserExcel {
	@ExcelProperty("用户Id")
	private Long userId;

	@ExcelProperty("用户名")
	private String username;

	@ExcelProperty("账号")
	private String loginId;

	@ExcelProperty("密码")
	private String password;

	@ExcelProperty("性别")
	@Excel(dict = "sex")
	private String sex;

	@ExcelProperty("手机号")
	private String phone;

	@ExcelProperty("邮箱")
	private String email;

	@ExcelProperty("身份证")
	private String idCard;

	@ExcelProperty("状态")
	@Excel(dict = "user_state")
	private String state;

	@ExcelProperty("上次密码")
	private String lastPassword;

	@ExcelProperty("上次登录时间")
	@ColumnWidth(20)
	@DateTimeFormat("yyyy-MM-dd hh:mm:ss")
	private Date lastLoginTime;

	@ExcelProperty("创建时间")
	@ColumnWidth(20)
	@DateTimeFormat("yyyy-MM-dd hh:mm:ss")
	private Date createTime;

	@ExcelProperty("更新时间")
	@ColumnWidth(20)
	@DateTimeFormat("yyyy-MM-dd hh:mm:ss")
	private Date updateTime;

	@ExcelProperty("头像")
	private String pictureUrl;

	@ExcelProperty("部门id")
	private Long deptId;

}